package com.limf.provider.controller;


import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.limf.provider.service.CustomerService;

@Controller
@RequestMapping("/customer")
public class CustomerController {
	
	//@Reference
	//public DemoService demoService;
	@Resource
	private CustomerService customerService;
	
	@RequestMapping("/init")
	public ModelAndView init(Model model) {
		
		System.out.println("111111111111111-------init");
		ModelAndView mav = new ModelAndView("index");
		
		System.out.println(customerService.test("web project"));
		
		return mav;
	}

}
